# -*- coding: utf-8 -*-

# Form implementation generated from reading ui file 'qtlogger.ui'
#
# Created: Mon Apr 17 16:51:00 2006
#      by: The PyQt User Interface Compiler (pyuic) 3.15.1
#
# WARNING! All changes made in this file will be lost!


from qt import *


class EuQtLogger(QDialog):
    def __init__(self,parent = None,name = None,modal = 0,fl = 0):
        QDialog.__init__(self,parent,name,modal,fl)

        if not name:
            self.setName("EuQtLogger")

        self.setSizeGripEnabled(1)

        EuQtLoggerLayout = QVBoxLayout(self,11,6,"EuQtLoggerLayout")

        self.textBrowser = QTextBrowser(self,"textBrowser")
        self.textBrowser.setPaletteForegroundColor(QColor(255,255,255))
        self.textBrowser.setPaletteBackgroundColor(QColor(0,0,0))
        self.textBrowser.setTextFormat(QTextBrowser.PlainText)
        EuQtLoggerLayout.addWidget(self.textBrowser)

        layout3 = QHBoxLayout(None,0,6,"layout3")
        spacer2 = QSpacerItem(40,20,QSizePolicy.Expanding,QSizePolicy.Minimum)
        layout3.addItem(spacer2)

        self.buttonCloselog = QPushButton(self,"buttonCloselog")
        self.buttonCloselog.setAutoDefault(1)
        layout3.addWidget(self.buttonCloselog)
        spacer3 = QSpacerItem(40,20,QSizePolicy.Expanding,QSizePolicy.Minimum)
        layout3.addItem(spacer3)
        EuQtLoggerLayout.addLayout(layout3)

        self.languageChange()

        self.resize(QSize(507,593).expandedTo(self.minimumSizeHint()))
        self.clearWState(Qt.WState_Polished)

        self.connect(self.buttonCloselog,SIGNAL("clicked()"),self.accept)


    def languageChange(self):
        self.setCaption(self.__tr("EasyUbuntu Log"))
        self.textBrowser.setText(QString.null)
        self.buttonCloselog.setText(self.__tr("&Close"))
        self.buttonCloselog.setAccel(self.__tr("Alt+C"))


    def __tr(self,s,c = None):
        return qApp.translate("EuQtLogger",s,c)
